//1.cpp
//

#include <iostream>
using namespace std;

class A {
  int aa;
public:
  virtual int get(){return aa;}
};

class B:public A {
  int bb;
public:
  int get() {return bb;}
  virtual void set(int b){bb = b;}
};

class C: public B {
  int cc;
public:
};

int main()
{
  A a;
  B b;
  C c;
  cout<<"sizeof(A)\t"<<sizeof(a)<<endl; //8
  cout<<"sizeof(B)\t"<<sizeof(b)<<endl; //12
  cout<<"sizeof(C)\t"<<sizeof(c)<<endl; //16
  return 0;
}
